﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            List<IExecutable> exlist = new List<IExecutable>
            {
                new Item1(),
                new Item2(),
                new Item3()
            };
            Worker w = new Worker(exlist);
            w.Run();
        }
    }

    class Item1 : IExecutable
    {
            public void Execute()
        {
            Console.WriteLine("Execute method runs");
        }
    }
    class Item2 : IExecutable
    {
        public void Execute()
        {
            Console.WriteLine("Execute method runs");
        }

    }
    class Item3 : IExecutable
    {
        public void Execute()
        {
            Console.WriteLine("Execute method runs");
        }
    }
}
